# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /cvs/zport/dev-ml/ocamlp3l/ocamlp3l-2.03.ebuild,v 1.1 2007/03/06 13:13:02 zechs Exp $

inherit eutils

DESCRIPTION="OCamlP3l is a compiler for Caml parallel programs."
HOMEPAGE="http://camlp3l.inria.fr/eng.htm"
SRC_URI="http://camlp3l.inria.fr/${P}.tgz"

LICENSE="LGPL"
SLOT="0"
KEYWORDS="x86 sparc"

IUSE=""
DEPEND="dev-lang/ocaml"

src_unpack() {
	unpack ${A}
}

src_compile() {
	make configure || die
	make || die
}

src_install() {
	#sed -i "s/\/usr\/local/\${D}usr/" makefile.config
	local myconf="PREFIX=${D}usr CAMLLIBDIR=${D}usr/lib/ocaml"
	dodir /usr/bin /usr/lib/ocaml/ocamlp3l
	make $myconf install || die
}
